package setting

var Runner = struct {
	AutoStart bool
	Count     int
	Image     string
}{}

func loadRunnerSettingsFrom(rootCfg ConfigProvider) {
	sec := rootCfg.Section("runners")
	Runner.AutoStart = sec.Key("AUTO_START").MustBool(true)
	Runner.Count = sec.Key("RUNNER_COUNT").MustInt(1)
	Runner.Image = sec.Key("RUNNER_IMAGE").MustString("devstar.cn/devstar/act_runner:latest")
}
